/* Set the direction of the player towards the a point (center of game area?) */

_pos = _this select 0;

_direction = ((_pos select 0) - (getpos player select 0)) atan2 ((_pos select 1) - (getpos player select 1)); 
if(_direction < 0) then {_direction = _direction + 360}; 

player setDir _direction;